package com.foton.designmodel.decorator.impl;

import com.foton.designmodel.decorator.orderprice.MoneySum;
import com.foton.designmodel.decorator.orderprice.entity.Order;
import org.springframework.stereotype.Component;


public abstract class DecoratorMoneySum implements MoneySum {

    private MoneySum moneySum;

    @Override
    public Order money(Order order) {
      return moneySum.money(order);
    }

    public MoneySum getMoneySum() {
        return moneySum;
    }

    public void setMoneySum(MoneySum moneySum) {
        this.moneySum = moneySum;
    }
}
